
package com.su.dev.current;

public abstract class BaseTask<T> implements Runnable {
    @Override
    public void run() {
        T prepExcute = prepExcute();
        T res = doInBackground(prepExcute);
        postExcute(res);
    }

    protected abstract T doInBackground(T in);

    protected abstract T prepExcute();

    protected abstract void postExcute(T result);

}
